Processing math: 100%

Ben Chuanlong Du's Blog

It is never too late to learn.

Expected Time to Hit Zero

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Let DU(0,n) be the discrete uniform distribution on 0, 1, ..., n1. Define random variables as below.

X1DU(0,n)
Xi+1DU(0,Xi) for i1

The above process is repeated until we get a random variable with the value zero. What is the expected number of variables (i.e., time to hit zero) in this process?

Let Tn be the time needed to hit zero.

tn=E(Tn)=E(E(Tn|X1))=n1i=01nE(Tn|X1=i)=n1i=01n(1+E(Ti))=n1i=01n(1+ti)
ntn=n+n1i=0ti
(n1)tn1=(n1)+n2i=0ti
ntn=n+tn1+(n1)tn1(n1)=ntn1+1
tntn1=1n
ni=1(titi1)=ni=11i
t0=0
tn=ni=11i

Comments